package com.findviewbydream.evil.eda.Activity;

import android.annotation.SuppressLint;
import android.support.v7.widget.Toolbar;
import android.widget.ImageView;
import android.widget.ScrollView;
import android.widget.TextView;

import com.findviewbydream.evil.eda.R;
import com.findviewbydream.evil.eda.Utils.Utils;

/********************************************
 * 工程名：Eda
 * 包名：com.findviewbydream.evil.eda.Activity
 * 时间：16-9-12 下午10:01
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：关于软件
 ********************************************/
public class AboutActivity extends BaseActivity
{
    private ImageView logo;
    private TextView Eda_name;
    private TextView Eda_VersionName;
    private TextView Eda_VersionCode;
    private TextView help;
    private ScrollView scrollView;

    @Override
    public int setContentView()
    {
        return R.layout.about_activity;
    }

    @Override
    public String setToolbarTitle()
    {
        return "关于软件";
    }

    @SuppressLint("SetTextI18n")
    @Override
    public void onCreate()
    {
        initView();

        Utils.Glide(R.drawable.logo, logo);

        Eda_name.setText("软件名称：" + "Eda易答");
        Eda_VersionName.setText("软件版本：" + Utils.getVersionName());
        Eda_VersionCode.setText("软件版本号：" + Utils.getVersionCode());

        help.setText(getResources().getString(R.string._Explain));
    }

    private void initView()
    {
        logo = (ImageView) findViewById(R.id.logo);
        Eda_name = (TextView) findViewById(R.id.Eda_name);
        Eda_VersionName = (TextView) findViewById(R.id.Eda_VersionName);
        Eda_VersionCode = (TextView) findViewById(R.id.Eda_VersionCode);
        help = (TextView) findViewById(R.id.help);
        scrollView = (ScrollView) findViewById(R.id.scrollView);
    }
}
